package com.coffee.admin.service.common.dao;

import com.coffee.admin.api.common.query.AdminMenuQuery;
import com.coffee.admin.service.common.bean.AdminMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMenuDao {
	public AdminMenu findById(Integer id);
	
	public AdminMenu findByIdForUpdate(Integer id);
	
	public List<AdminMenu> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") AdminMenuQuery param);

	public List<AdminMenu> page(@Param("param") AdminMenuQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<AdminMenu> list(@Param("param") AdminMenuQuery param);

	public AdminMenu findFirst(@Param("param") AdminMenuQuery param);

	public Integer insert(AdminMenu param);

	Integer insertBatch(List<AdminMenu> list);

	public void updateById(@Param("param") AdminMenu param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}